import { Hono } from "hono";
import { handle } from "hono/vercel";
import users from "./users";
import user from "./user"


export const runtime = "nodejs";

const app = new Hono().basePath("/api");

const routes = app
.route("/users", users)
.route("/user", user)

export const GET = handle(app);
export const POST = handle(app);

export type AppType = typeof routes;
